import Singleton from "../../base/Script/net/Singleton";
import { Parts } from "./ccCommon";

/** 服装数据 */
export default class ClothesData extends Singleton {
    private partDatas = {};
    public load(){
        this.partDatas[Parts.lian] = 0;
        this.partDatas[Parts.toufa] = 0;
        this.partDatas[Parts.neiyi] = 0;
        this.partDatas[Parts.xiayi] = -1;
        this.partDatas[Parts.shangyi] = -1;
        this.partDatas[Parts.xiezi] = -1;
        this.partDatas[Parts.chibang] = -1;
    }

    getPart(partId:number){
        return this.partDatas[partId];
    }

    setPart(partId:number, idx:number){
        this.partDatas[partId] = idx;
    }

}